<template>
  <footer class="global-footer">
    <div class="footer-container">
      <div class="footer-content">
        <p class="copyright">
          <a
            href="https://www.codefather.cn"
            target="_blank"
            rel="noopener noreferrer"
            class="author-link"
          >
            AI零代码生成平台 by 作者小贾嗯嗯
          </a>
        </p>
        <div class="footer-links">
          <span class="footer-text">让AI为你创造无限可能</span>
        </div>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
// 无需额外的响应式数据
</script>

<style scoped>
.global-footer {
  margin-top: auto;
  background:
    radial-gradient(ellipse 800px 200px at 50% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
    linear-gradient(135deg,
      rgba(71, 85, 105, 0.8) 0%,
      rgba(51, 65, 85, 0.85) 25%,
      rgba(30, 41, 59, 0.9) 50%,
      rgba(15, 23, 42, 0.95) 100%
    );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.global-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 180px 180px;
  pointer-events: none;
  animation: footerSparkle 35s ease-in-out infinite;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.author-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.author-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  transition: width 0.3s ease;
}

.author-link:hover {
  color: #60a5fa;
  transform: translateY(-1px);
}

.author-link:hover::after {
  width: 100%;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-style: italic;
}

@keyframes footerSparkle {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 0.3;
    transform: translateX(-8px);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .footer-container {
    padding: 24px 16px;
  }

  .copyright {
    font-size: 13px;
  }

  .footer-text {
    font-size: 11px;
  }
}
</style>
